Skip to content

Rjwebb/make teekit compatible 2#2

Draft
rjwebb wants to merge 4 commits intomainfrom
rjwebb/make-teekit-compatible-2
Draft

Rjwebb/make teekit compatible 2#2
rjwebb wants to merge 4 commits intomainfrom
rjwebb/make-teekit-compatible-2

Conversation

@rjwebb
Copy link

@rjwebb rjwebb commented Mar 2, 2026

Implements #3

Redoing #1 because main has diverged a lot since it was submitted.

To do:

  • Replace node http with Hono
  • Add TunnelServer to the backend
  • Add TunnelClient to the frontend
  • Add expected TEE attestation to TunnelClient.initialize
  • Use TunnelClient's fetch function to make requests to backend
  • Deploy in an SGX VM

Testing:

  • Write (Claude) a script to confirm the backend works
  • Manually test the app once deployed

rjwebb and others added 4 commits March 2, 2026 13:24
Migrate from Node's native http.createServer() with custom regex-based
routing to Hono, providing proper routing, middleware patterns, and
cleaner request/response handling via @hono/node-server.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use secureHeaders(), serveStatic(), HTTPException, and bodyLimit() from
Hono instead of hand-rolled equivalents. This removes ~70 lines of
custom code (MIME map, file serving, ClientError class, manual security
headers) and restores the 2 MB body size limit lost during migration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When TEEKIT_GET_QUOTE_URL is set, the server initializes a TunnelServer
with the Hono app (via getRequestListener) for encrypted communication
inside a trusted execution environment. Standard mode is unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raykyri raykyri force-pushed the main branch 3 times, most recently from 660834e to 780363c Compare March 7, 2026 18:12
@raykyri raykyri force-pushed the main branch 4 times, most recently from e5178d9 to f5104a1 Compare March 24, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant